home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / comms / other / ascan / sources / noopentcp.c < prev    next >
C/C++ Source or Header  |  1999-06-14  |  892b  |  32 lines

  1.  
  2. #include <proto/exec.h>
  3. #include <proto/intuition.h>
  4.  
  5. /***************************************************************************/
  6. /*Hummmmmm let's custom the "NO STACK..." requester :)*/
  7.  
  8. #define TITLE "ascan warning"
  9.  
  10. #define NOTCP_MSG "\
  11. No TCP/IP stack is running.\n\
  12. A bsdsocket.library compatible\n\
  13. internet stack has to be started\n\
  14. first."
  15.  
  16. #define GADGETS_TXT "Cancel"
  17.  
  18. /***************************************************************************/
  19.  
  20. void ___miami_noopentcp(void)
  21. {
  22.     struct EasyStruct                es = {sizeof(struct EasyStruct), 0, TITLE, NOTCP_MSG, GADGETS_TXT};
  23.     register struct IntuitionBase     *IntuitionBase;
  24.  
  25.     if (IntuitionBase = (struct IntuitionBase *)OpenLibrary("intuition.library",36)) {
  26.         EasyRequestArgs(NULL,&es,NULL,NULL);
  27.         CloseLibrary((struct Library *)IntuitionBase);
  28.     }
  29. }
  30.  
  31. /***************************************************************************/
  32.